<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      @keyframes move {
        0% {
          transform: translate(0px);
        }
        100% {
          transform: translate(1000px, 1000px);
        }
      }
      div {
        width: 200px;
        height: 200px;
        background-color: yellow;
        animation-name: move; /*动画名称*/
        animation-duration: 10s; /*持续时间*/
        animation-fill-mode: forwards;
      }
    </style>
  </head>
  <body>
    <div></div>
  </body>
</html>
